package cn.ylg.com.baisibudeijie.mvp.presenter.impl;

import cn.ylg.com.baisibudeijie.mvp.presenter.MvpPresenter;
import cn.ylg.com.baisibudeijie.mvp.view.MvpView;

/**
 * Created by MyPC on 2016/10/18.
 */
public class MvpBasePresenter<V extends MvpView> implements MvpPresenter<V> {

    private V view;
    @Override
    public void attach(V view) {
        this.view = view;
    }

    @Override
    public void deattach() {
        if (this.view!=null)
            this.view = null;
    }
}
